/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
 */

package pl.droidsonroids.gif.transforms;

import ohos.agp.render.Canvas;
import ohos.agp.render.Paint;
import ohos.agp.utils.Rect;
import ohos.media.image.PixelMap;

/**
 * Interface to support clients performing custom transformations before the current GIF Bitmap is drawn.
 */

/**
 * 功能描述
 *

 * @since 2020-06-29
 */
public interface Transform {
    /**
     * onBoundsChange
     *
     * @param bounds bounds
     */
    void onBoundsChange(Rect bounds);

    /**
     * onDraw
     *
     * @param canvas canvas
     * @param paint paint
     * @param buffer buffer
     */
    void onDraw(Canvas canvas, Paint paint, PixelMap buffer);
}
